<?php
session_start();

// === Autoloader laden und konfigurieren ===
include_once('library/yapary/php5/class/Yapary/Autoloader.class.php5');
include_once('library/yapary/php5/class/Yapary/Header/Header.class.php5');

$oHeader     = new Yapary_Header_Header();
$oAutoloader = new Yapary_Autoloader($oHeader);
$oAutoloader->addPhp('library/yapary/php5/class/', array('%s.class.php5', '%s.interface.php5')); // Yapary Framework
$oAutoloader->addPhp('backend/bo/pdfshop/', array('%s.class.php')); // PDFShop Business Objects

// MVC Frontend
$oAutoloader->addPhp('frontend/model/', array('%s.class.php'));
$oAutoloader->addPhp('frontend/view/', array('%s.class.php'));
$oAutoloader->addPhp('frontend/controller/', array('%s.class.php'));


$oAutoloader->register();


// Globale Daten instanziieren
$registry			= Yapary_SingletonRegistry::getInstance();
$registry->oHeader	= $oHeader;
$registry->oHeader->setBaseUrl(BASEURL);
